package com.terren.spider.entity.biz;

import com.terren.spider.entity.BasicEntity;
import com.terren.spider.util.common.Lookup3Hash;

public class BasicDataEntity extends BasicEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = -5104360811675002455L;

	protected Long urlId = 0l; // URL的64位哈希
	protected String url = "";// URL地址
	protected Integer sourceId = 0; // 网站来源ID
	protected Integer catagoryId = 0; // 网站类型ID
	protected Integer entryId = 0; // 入口ID
	
	
	
	
	public Integer getSourceId() {
		return sourceId;
	}

	public void setSourceId(Integer sourceId) {
		this.sourceId = sourceId;
	}

	public Integer getCatagoryId() {
		return catagoryId;
	}

	public void setCatagoryId(Integer catagoryId) {
		this.catagoryId = catagoryId;
	}

	public Integer getEntryId() {
		return entryId;
	}

	public void setEntryId(Integer entryId) {
		this.entryId = entryId;
	}

	public Long getUrlId() {
		if (null != url && !"".equals(url)) {
			urlId = Lookup3Hash.toID(url);
		}
		return urlId;
	}

	public void setUrlId(Long urlId) {
		this.urlId = urlId;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

}
